+2007-06-29 Matthias Clasen <mclasen@redhat.com>
+
+ * modules/printbackend/cups/gtkcupsutils.c (_post_check):
+ (_get_check): Enable SSL support. (#451070, Vince Busam)
+
2007-06-29 Johan Dahlin <jdahlin@async.com.br>
* gtk/gtkbuilder.c: (gtk_builder_finalize),
return;
}
}
-/* TODO: detect ssl in configure.ac */
-#if HAVE_SSL
else if (http_status == HTTP_UPGRADE_REQUIRED)
{
/* Flush any error message... */
httpFlush (request->http);
+ cupsSetEncryption (HTTP_ENCRYPT_REQUIRED);
+ request->state = GTK_CUPS_POST_CONNECT;
+
/* Reconnect... */
httpReconnect (request->http);
request->attempts++;
goto again;
}
-#endif
else if (http_status != HTTP_OK)
{
int http_errno;
"Can't prompt for authorization");
return;
}
-/* TODO: detect ssl in configure.ac */
-#if HAVE_SSL
else if (http_status == HTTP_UPGRADE_REQUIRED)
{
/* Flush any error message... */
httpFlush (request->http);
+ cupsSetEncryption (HTTP_ENCRYPT_REQUIRED);
+ request->state = GTK_CUPS_POST_CONNECT;
+
/* Reconnect... */
httpReconnect (request->http);
request->attempts++;
goto again;
}
-#endif
else if (http_status != HTTP_OK)
{
int http_errno;